package finalproject.model.items;

import finalproject.model.player.Player;
import finalproject.view.StringManager;

/**
 * A cheatsheet is an item that allows the player to cheat during an exam
 * It uses the singleton pattern
 * @author Nicolas Bighetti
 *
 */
public class CheatSheet extends Item{

	/**
	 * the instance of the class
	 */
	private static CheatSheet INSTANCE = new CheatSheet();

	/**
	 * The main constructor of the class
	 * It is private to allow only one OOPbook instance at a given time
	 * To get the instance, one should use the method getInstance
	 */
	private CheatSheet()
	{
		super(StringManager.getString("cheatsheet"), StringManager.getString("cheatsheetdescription"),1,true, false, false);
	}
	
	/**
	 * @return the instance of the class
	 */
	public static CheatSheet getInstance()
	{
		return INSTANCE;
	}
	
	@Override
	public void use(Player player) {
	    StringManager.outPut("readsheet");
	}

}
